package com.example.yimai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yimai.entity.ProductCategory;

import java.util.List;
import java.util.Map;

public interface ProductCategoryService extends IService<ProductCategory> {

    public ProductCategory getCategory(String id);

    public String addCategory(Map<String,Object> params);

    public List<ProductCategory> getAll();

    public String updateCategory(Map<String,Object> params);

    public String deleteCategory(Integer id);

    public List<ProductCategory> getTop();

    public List<ProductCategory> getChild(int id);

}
